<?php
/**
 * 接口数据同步-测试用
 *
 * User: kaikaic
 * Date: 2018/11/16
 * Time: 0:07
 */

namespace app\api\controller;

use app\api\service\MecService;
use controller\BasicApi;
use service\ToolsService;
use think\Db;

class Sync extends BasicApi {

    public function index() {
        $this->outputJsonError("错误");
    }

    public function mec() {
        $mecList = array();
        for ($i=0; $i<10; $i++) {
            $mec = array();

            $mec['name'] = "体检中心" + $i;
            $mecList['logo'] = "";
            $mec['unique_code'] = "EX000" + $i + 100;
            $mec['category_id'] = 12;
            $mec['province_id'] = 18;
            $mec['city_id'] = 275;
            $mec['district_id'] = 2914;
            $mec['address'] = "长沙大道" + $i + "号";
            $mec['phone'] = "11112222";
            $mec['intro'] = "体检中心介绍";
            $mec['tags'] = "";
            $mec['lat'] = "";
            $mec['lng'] = "";

            $mecList[] = $mec;
        }

        $this->outputJsonError("失败了");
//        $this->outputJsonSuccess($mecList);
    }

}

